# -*- coding: utf-8 -*-

"""
@Datetime: 2019/5/21
@Author: Zhang Yafei
"""


def sum_2_nums(a, b, *args):
    print("-" * 30)
    print(a)
    print(b)
    print(args)
    result = a + b
    for num in args:
        result += num
    print("result=%d" % result)


sum_2_nums(11, 22, 33, 44, 55, 66, 77)
sum_2_nums(11, 22, 33)
sum_2_nums(11, 22)
# sum_2_nums(11)#错误,因为形参中至少要2个实参
